package com.util;

import java.util.List;

public class PageBean<T> {
	private List<T> list;
	private int currPage;//当前页数
	private int pageSize=5;//页面数据条数
	private int totalPage;//总页数
	private int totalRow;//总行数
	public List<T> getList() {
		return list;
	}
	public void setList(List<T> list) {
		this.list = list;
	}
	public int getCurrPage() {
		return currPage;
	}
	public void setCurrPage(int currPage) {
		this.currPage = currPage;
	}
	public int getPageSize() {
		return pageSize;
	}
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
	public int getTotalPage() {
		return totalPage;
	}
	public void setTotalPage(int totalPage) {
		this.totalPage = totalPage;
	}
	public int getTotalRow() {
		return totalRow;
	}
	public void setTotalRow(int totalRow) {
		this.totalRow = totalRow;
		this.totalPage = totalRow%pageSize==0?totalRow/pageSize:totalRow/pageSize+1;
	}	
}
